export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './User/Login',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        authority: ['admin', 'user'],
        routes: [
          {
            path: '/',
            redirect: '/welcome',
          },
          {
            path: '/welcome',
            name: 'welcome',
            icon: 'smile',
            component: './Welcome',
          },
          // {
          //   path: '/admin',
          //   name: 'admin',
          //   icon: 'crown',
          //   component: './Admin',
          //   authority: ['admin'],
          // },
          // {
          //   name: 'list.table-list',
          //   icon: 'table',
          //   path: '/list',
          //   component: './BTCList',
          // },
          //  {
          //   name: 'list.table-list',
          //   icon: 'table',
          //   path: '/list',
          //   component: './TableList',
          // },
          {
            name: 'BTCList',
            icon: 'table',
            path: '/btcList',
            authority: ['admin', 'user'],
            routes: [
              {
                name: 'Overview',
                path: '/btcList/overview',
                authority: ['admin', 'user'],
                component: './BTCList/Overview',
              },
              {
                name: 'StatisticsList',
                path: '/btcList/statisticsList',
                authority: ['admin', 'user'],
                component: './BTCList/StatisticsList',
              },
              {
                name: 'FTXdHedging',
                path: '/btcList/ftxdHedging',
                authority: ['admin', 'user'],
                component: './BTCList/FTXdHedging',
              },
              {
                name: 'FTX',
                path: '/btcList/ftx',
                authority: ['admin', 'user'],
                component: './BTCList/FTX',
              },
              {
                name: 'GoodsGrid',
                path: '/btcList/goodsGrid',
                authority: ['admin', 'user'],
                component: './BTCList/GoodsGrid',
              },
              {
                name: 'GoodsList',
                path: '/btcList/goodsList',
                authority: ['admin', 'user'],
                component: './BTCList/GoodsList',
              },
              {
                name: 'LiquidityList',
                path: '/btcList/liquidityList',
                authority: ['admin', 'user'],
                component: './BTCList/LiquidityList',
              },
              {
                name: 'GridProfit',
                path: '/btcList/gridProfit',
                authority: ['admin', 'user'],
                component: './BTCList/GridProfit',
              },
              {
                name: 'HedgeProfit',
                path: '/btcList/hedgeProfit',
                authority: ['admin', 'user'],
                component: './BTCList/HedgeProfit',
              },
              {
                name: 'SimilarPairProfit',
                path: '/btcList/similarPairProfit',
                authority: ['admin', 'user'],
                component: './BTCList/SimilarPairProfit',
              },
              {
                name: 'UProfit',
                path: '/btcList/UProfit',
                authority: ['admin', 'user'],
                component: './BTCList/UProfit',
              },
              {
                name: 'CrossProfitList',
                path: '/btcList/crossProfitList',
                authority: ['admin', 'user'],
                component: './Futuers/CrossProfitList',
              },
          {
                name: 'Deribit',
                path: '/btcList/deribit',
                authority: ['admin', 'user'],
                component: './BTCList/Deribit',
              },
            ],
          },
          {
            name: 'Order',
            icon: 'AppstoreAddOutlined',
            path: '/order',
            authority: ['admin', 'user'],
            routes: [

              {
                name: 'FutuersList',
                path: '/order/futuersList',
                authority: ['admin', 'user'],
                component: './Futuers/FutuersList',
              },
              {
                name: 'StockList',
                path: '/order/stockList',
                authority: ['admin', 'user'],
                component: './Stock/StockList',
              },
              {
                name: 'ContractList',
                path: '/order/contractList',
                authority: ['admin', 'user'],
                component: './Contract/ContractList',
              },
            ],
          },
          {
            name: 'BTCManage',
            icon: 'bank',
            path: '/btcManage',
            authority: ['admin', 'user'],
            routes: [
              {
                name: 'BTCPic',
                path: '/btcManage/btcPic',
                authority: ['admin', 'user'],
                component: './BTCManage/btcPic',
              },
              {
                name: 'ETHNet',
                path: '/btcManage/ETHNet',
                authority: ['admin', 'user'],
                component: './BTCManage/ETHNet',
              },
              {
                name: 'OptionStockNet',
                path: '/btcManage/OptionStockNet',
                authority: ['admin', 'user'],
                component: './BTCManage/OptionStockNet',
              },
  {
                name: 'TSLNet',
                path: '/btcManage/TSLNet',
                authority: ['admin', 'user'],
                component: './BTCManage/TSLNet',
              },

            ],
          },
          // {
          //   name: 'page-tabs-demo',
          //   icon: 'star',
          //   path: '/route-tabs-demo',
          //   routes: [
          //     {
          //       path: '/route-tabs-demo',
          //       redirect: '/route-tabs-demo/control',
          //     },
          //     {
          //       name: 'control',
          //       path: '/route-tabs-demo/control',
          //       component: './RouteTabsDemo/Control',
          //     },
          //     {
          //       name: 'parent',
          //       path: '/route-tabs-demo/parent',
          //       component: './RouteTabsDemo/Parent',
          //       hideChildrenInMenu: true,
          //       routes: [
          //         {
          //           path: '/route-tabs-demo/parent',
          //           redirect: '/route-tabs-demo/parent/child1',
          //         },
          //         {
          //           path: '/route-tabs-demo/parent/child1',
          //           component: './RouteTabsDemo/Parent/Child1',
          //         },
          //         {
          //           path: '/route-tabs-demo/parent/child2',
          //           name: 'child2',
          //           component: './RouteTabsDemo/Parent/Child2',
          //         },
          //         {
          //           path: '/route-tabs-demo/parent/child3',
          //           component: './RouteTabsDemo/Parent/Child3',
          //         },
          //       ],
          //     },
          //     {
          //       name: 'query',
          //       path: '/route-tabs-demo/query',
          //       component: './RouteTabsDemo/Query',
          //     },
          //     {
          //       name: 'result',
          //       path: '/route-tabs-demo/result',
          //       follow: '/route-tabs-demo/query',
          //       hideInMenu: true,
          //       component: './RouteTabsDemo/Result',
          //     },
          //   ],
          // },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
